\hypertarget{classpg_mesh}{\section{pg\-Mesh Class Reference}
\label{classpg_mesh}\index{pg\-Mesh@{pg\-Mesh}}
}


{\ttfamily \#include $<$pg\-Mesh.\-h$>$}

Inheritance diagram for pg\-Mesh\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classpg_mesh}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classpg_mesh_ac08c5ede6a88f2dcaed36b876119e95e}{pg\-Mesh} ()
\item 
\hyperlink{classpg_mesh_af467c5724ecb53688436e56954a2a8d1}{$\sim$pg\-Mesh} ()
\item 
I\-D3\-D11\-Buffer $\ast$ \hyperlink{classpg_mesh_a8852a5d907d8afc3a03fc5b1ad6ba8cd}{Get\-Vertex\-Buffer} ()
\item 
I\-D3\-D11\-Buffer $\ast$ \hyperlink{classpg_mesh_aa668e5a3d5d91d42d7d1732da68b5054}{Get\-Index\-Buffer} ()
\item 
int \hyperlink{classpg_mesh_ad549bf8d039ad93c6e8c995b6a9a5359}{Get\-Vertex\-Count} ()
\item 
int \hyperlink{classpg_mesh_af5c0e4b2ab1e187592b8747cb72b8700}{Get\-Index\-Count} ()
\item 
void \hyperlink{classpg_mesh_a75852fef61bc02addb57843ed18ba202}{Set\-Vertices} (\hyperlink{struct_s_vertex}{S\-Vertex} $\ast$p\-Verts, int vertex\-Count)
\item 
void \hyperlink{classpg_mesh_ad4d6e14a536742c39485337528565cd7}{Set\-Indices} (W\-O\-R\-D $\ast$p\-Indices, int index\-Count)
\item 
void \hyperlink{classpg_mesh_aad829076f9fa41e305eb4b05987f2cdc}{Create\-Buffers} ()
\begin{DoxyCompactList}\small\item\em Creates the D\-X Index and vertex buffers. \end{DoxyCompactList}\item 
\hyperlink{struct_s_vertex}{S\-Vertex} $\ast$ \hyperlink{classpg_mesh_ae53918923865eb1fcdd361ba0926b083}{Get\-Vertices} (int \&vertex\-Count)
\item 
\hyperlink{struct_s_vertex}{S\-Vertex} $\ast$ \hyperlink{classpg_mesh_ab551d6b24ab19f5825f2b233a1b524bb}{Copy\-Vertices} (int \&vertex\-Count)
\item 
W\-O\-R\-D $\ast$ \hyperlink{classpg_mesh_a05956ad8d08192a38acfb7470edfeb6c}{Get\-Indices} (int \&index\-Count)
\item 
W\-O\-R\-D $\ast$ \hyperlink{classpg_mesh_ac16d89780fa415f05530974eca17e007}{Copy\-Indices} (int \&index\-Count)
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{classpg_mesh_aaa40e0fbe9c9d0149d2c408a5a2633e8}{Set\-Vertex\-From\-Line} (int index, std\-::string line)
\item 
void \hyperlink{classpg_mesh_adec675b45a885fbf8ec11e9d9d4cb551}{Read\-Indizes} ()
\item 
void \hyperlink{classpg_mesh_a5f6530e8064f53170ec0eb0f5cec6843}{Read\-Verts} ()
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{struct_s_vertex}{S\-Vertex} $\ast$ \hyperlink{classpg_mesh_aacd853ba3d7be2f122a9a9ddad0c4c80}{m\-\_\-ap\-Verts}
\item 
W\-O\-R\-D $\ast$ \hyperlink{classpg_mesh_a8498f7dae7c73db64783ed66e9cb7654}{m\-\_\-ap\-Indices}
\item 
I\-D3\-D11\-Buffer $\ast$ \hyperlink{classpg_mesh_af398aa6765d1317a584bfc98b38007e8}{m\-\_\-p\-Vertex\-Buffer}
\item 
I\-D3\-D11\-Buffer $\ast$ \hyperlink{classpg_mesh_ac0c312baf5aa514c22a80110660990b2}{m\-\_\-p\-Index\-Buffer}
\item 
int \hyperlink{classpg_mesh_a4142f99f231a4c4da698b4e2d7ce0e4e}{m\-\_\-vertex\-Count}
\item 
int \hyperlink{classpg_mesh_a52248bbf67aeeccfe8d1299eee84d79a}{m\-\_\-index\-Count}
\end{DoxyCompactItemize}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{classpg_mesh_ac08c5ede6a88f2dcaed36b876119e95e}{\index{pg\-Mesh@{pg\-Mesh}!pg\-Mesh@{pg\-Mesh}}
\index{pg\-Mesh@{pg\-Mesh}!pgMesh@{pg\-Mesh}}
\subsubsection[{pg\-Mesh}]{\setlength{\rightskip}{0pt plus 5cm}pg\-Mesh\-::pg\-Mesh (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classpg_mesh_ac08c5ede6a88f2dcaed36b876119e95e}
\hypertarget{classpg_mesh_af467c5724ecb53688436e56954a2a8d1}{\index{pg\-Mesh@{pg\-Mesh}!$\sim$pg\-Mesh@{$\sim$pg\-Mesh}}
\index{$\sim$pg\-Mesh@{$\sim$pg\-Mesh}!pgMesh@{pg\-Mesh}}
\subsubsection[{$\sim$pg\-Mesh}]{\setlength{\rightskip}{0pt plus 5cm}pg\-Mesh\-::$\sim$pg\-Mesh (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classpg_mesh_af467c5724ecb53688436e56954a2a8d1}


\subsection{Member Function Documentation}
\hypertarget{classpg_mesh_ac16d89780fa415f05530974eca17e007}{\index{pg\-Mesh@{pg\-Mesh}!Copy\-Indices@{Copy\-Indices}}
\index{Copy\-Indices@{Copy\-Indices}!pgMesh@{pg\-Mesh}}
\subsubsection[{Copy\-Indices}]{\setlength{\rightskip}{0pt plus 5cm}W\-O\-R\-D$\ast$ pg\-Mesh\-::\-Copy\-Indices (
\begin{DoxyParamCaption}
\item[{int \&}]{index\-Count}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classpg_mesh_ac16d89780fa415f05530974eca17e007}


Implements \hyperlink{class_i_mesh_ab1c78916ed5dc4dfb5d9cc98d6924701}{I\-Mesh}.

\hypertarget{classpg_mesh_ab551d6b24ab19f5825f2b233a1b524bb}{\index{pg\-Mesh@{pg\-Mesh}!Copy\-Vertices@{Copy\-Vertices}}
\index{Copy\-Vertices@{Copy\-Vertices}!pgMesh@{pg\-Mesh}}
\subsubsection[{Copy\-Vertices}]{\setlength{\rightskip}{0pt plus 5cm}{\bf S\-Vertex}$\ast$ pg\-Mesh\-::\-Copy\-Vertices (
\begin{DoxyParamCaption}
\item[{int \&}]{vertex\-Count}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classpg_mesh_ab551d6b24ab19f5825f2b233a1b524bb}


Implements \hyperlink{class_i_mesh_abb8a0607a80a88e8d931c4fd4d84e142}{I\-Mesh}.

\hypertarget{classpg_mesh_aad829076f9fa41e305eb4b05987f2cdc}{\index{pg\-Mesh@{pg\-Mesh}!Create\-Buffers@{Create\-Buffers}}
\index{Create\-Buffers@{Create\-Buffers}!pgMesh@{pg\-Mesh}}
\subsubsection[{Create\-Buffers}]{\setlength{\rightskip}{0pt plus 5cm}void pg\-Mesh\-::\-Create\-Buffers (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classpg_mesh_aad829076f9fa41e305eb4b05987f2cdc}


Creates the D\-X Index and vertex buffers. 

Will use default cube if vertices or indices are faulty. 

Implements \hyperlink{class_i_mesh_a1e044cbe15ec3dd74ddec6a72b4f34d0}{I\-Mesh}.

\hypertarget{classpg_mesh_aa668e5a3d5d91d42d7d1732da68b5054}{\index{pg\-Mesh@{pg\-Mesh}!Get\-Index\-Buffer@{Get\-Index\-Buffer}}
\index{Get\-Index\-Buffer@{Get\-Index\-Buffer}!pgMesh@{pg\-Mesh}}
\subsubsection[{Get\-Index\-Buffer}]{\setlength{\rightskip}{0pt plus 5cm}I\-D3\-D11\-Buffer$\ast$ pg\-Mesh\-::\-Get\-Index\-Buffer (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classpg_mesh_aa668e5a3d5d91d42d7d1732da68b5054}


Implements \hyperlink{class_i_mesh_a8f8f4bec83a13ca2fd34acfa8dfd9546}{I\-Mesh}.

\hypertarget{classpg_mesh_af5c0e4b2ab1e187592b8747cb72b8700}{\index{pg\-Mesh@{pg\-Mesh}!Get\-Index\-Count@{Get\-Index\-Count}}
\index{Get\-Index\-Count@{Get\-Index\-Count}!pgMesh@{pg\-Mesh}}
\subsubsection[{Get\-Index\-Count}]{\setlength{\rightskip}{0pt plus 5cm}int pg\-Mesh\-::\-Get\-Index\-Count (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classpg_mesh_af5c0e4b2ab1e187592b8747cb72b8700}


Implements \hyperlink{class_i_mesh_a7c9683d0afae7163b57e2787db8563c5}{I\-Mesh}.

\hypertarget{classpg_mesh_a05956ad8d08192a38acfb7470edfeb6c}{\index{pg\-Mesh@{pg\-Mesh}!Get\-Indices@{Get\-Indices}}
\index{Get\-Indices@{Get\-Indices}!pgMesh@{pg\-Mesh}}
\subsubsection[{Get\-Indices}]{\setlength{\rightskip}{0pt plus 5cm}W\-O\-R\-D$\ast$ pg\-Mesh\-::\-Get\-Indices (
\begin{DoxyParamCaption}
\item[{int \&}]{index\-Count}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classpg_mesh_a05956ad8d08192a38acfb7470edfeb6c}


Implements \hyperlink{class_i_mesh_aa03f067238d9c8763e44e07ac049102f}{I\-Mesh}.

\hypertarget{classpg_mesh_a8852a5d907d8afc3a03fc5b1ad6ba8cd}{\index{pg\-Mesh@{pg\-Mesh}!Get\-Vertex\-Buffer@{Get\-Vertex\-Buffer}}
\index{Get\-Vertex\-Buffer@{Get\-Vertex\-Buffer}!pgMesh@{pg\-Mesh}}
\subsubsection[{Get\-Vertex\-Buffer}]{\setlength{\rightskip}{0pt plus 5cm}I\-D3\-D11\-Buffer$\ast$ pg\-Mesh\-::\-Get\-Vertex\-Buffer (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classpg_mesh_a8852a5d907d8afc3a03fc5b1ad6ba8cd}


Implements \hyperlink{class_i_mesh_a3ac09054c73a9d1545caf6f57325a5c0}{I\-Mesh}.

\hypertarget{classpg_mesh_ad549bf8d039ad93c6e8c995b6a9a5359}{\index{pg\-Mesh@{pg\-Mesh}!Get\-Vertex\-Count@{Get\-Vertex\-Count}}
\index{Get\-Vertex\-Count@{Get\-Vertex\-Count}!pgMesh@{pg\-Mesh}}
\subsubsection[{Get\-Vertex\-Count}]{\setlength{\rightskip}{0pt plus 5cm}int pg\-Mesh\-::\-Get\-Vertex\-Count (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classpg_mesh_ad549bf8d039ad93c6e8c995b6a9a5359}


Implements \hyperlink{class_i_mesh_a6cf593079693e566cb5900f1555b877a}{I\-Mesh}.

\hypertarget{classpg_mesh_ae53918923865eb1fcdd361ba0926b083}{\index{pg\-Mesh@{pg\-Mesh}!Get\-Vertices@{Get\-Vertices}}
\index{Get\-Vertices@{Get\-Vertices}!pgMesh@{pg\-Mesh}}
\subsubsection[{Get\-Vertices}]{\setlength{\rightskip}{0pt plus 5cm}{\bf S\-Vertex}$\ast$ pg\-Mesh\-::\-Get\-Vertices (
\begin{DoxyParamCaption}
\item[{int \&}]{vertex\-Count}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classpg_mesh_ae53918923865eb1fcdd361ba0926b083}


Implements \hyperlink{class_i_mesh_aba02918f7c2f017f3f462a0e3234472a}{I\-Mesh}.

\hypertarget{classpg_mesh_adec675b45a885fbf8ec11e9d9d4cb551}{\index{pg\-Mesh@{pg\-Mesh}!Read\-Indizes@{Read\-Indizes}}
\index{Read\-Indizes@{Read\-Indizes}!pgMesh@{pg\-Mesh}}
\subsubsection[{Read\-Indizes}]{\setlength{\rightskip}{0pt plus 5cm}void pg\-Mesh\-::\-Read\-Indizes (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [private]}}}\label{classpg_mesh_adec675b45a885fbf8ec11e9d9d4cb551}
\hypertarget{classpg_mesh_a5f6530e8064f53170ec0eb0f5cec6843}{\index{pg\-Mesh@{pg\-Mesh}!Read\-Verts@{Read\-Verts}}
\index{Read\-Verts@{Read\-Verts}!pgMesh@{pg\-Mesh}}
\subsubsection[{Read\-Verts}]{\setlength{\rightskip}{0pt plus 5cm}void pg\-Mesh\-::\-Read\-Verts (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [private]}}}\label{classpg_mesh_a5f6530e8064f53170ec0eb0f5cec6843}
\hypertarget{classpg_mesh_ad4d6e14a536742c39485337528565cd7}{\index{pg\-Mesh@{pg\-Mesh}!Set\-Indices@{Set\-Indices}}
\index{Set\-Indices@{Set\-Indices}!pgMesh@{pg\-Mesh}}
\subsubsection[{Set\-Indices}]{\setlength{\rightskip}{0pt plus 5cm}void pg\-Mesh\-::\-Set\-Indices (
\begin{DoxyParamCaption}
\item[{W\-O\-R\-D $\ast$}]{p\-Indices, }
\item[{int}]{index\-Count}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classpg_mesh_ad4d6e14a536742c39485337528565cd7}


Implements \hyperlink{class_i_mesh_a9b407f85ec37aa62cb2593bac329a77c}{I\-Mesh}.

\hypertarget{classpg_mesh_aaa40e0fbe9c9d0149d2c408a5a2633e8}{\index{pg\-Mesh@{pg\-Mesh}!Set\-Vertex\-From\-Line@{Set\-Vertex\-From\-Line}}
\index{Set\-Vertex\-From\-Line@{Set\-Vertex\-From\-Line}!pgMesh@{pg\-Mesh}}
\subsubsection[{Set\-Vertex\-From\-Line}]{\setlength{\rightskip}{0pt plus 5cm}void pg\-Mesh\-::\-Set\-Vertex\-From\-Line (
\begin{DoxyParamCaption}
\item[{int}]{index, }
\item[{std\-::string}]{line}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [private]}}}\label{classpg_mesh_aaa40e0fbe9c9d0149d2c408a5a2633e8}
\hypertarget{classpg_mesh_a75852fef61bc02addb57843ed18ba202}{\index{pg\-Mesh@{pg\-Mesh}!Set\-Vertices@{Set\-Vertices}}
\index{Set\-Vertices@{Set\-Vertices}!pgMesh@{pg\-Mesh}}
\subsubsection[{Set\-Vertices}]{\setlength{\rightskip}{0pt plus 5cm}void pg\-Mesh\-::\-Set\-Vertices (
\begin{DoxyParamCaption}
\item[{{\bf S\-Vertex} $\ast$}]{p\-Verts, }
\item[{int}]{vertex\-Count}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classpg_mesh_a75852fef61bc02addb57843ed18ba202}


Implements \hyperlink{class_i_mesh_a62e4c5399ef799ade53f059f143b6e81}{I\-Mesh}.



\subsection{Member Data Documentation}
\hypertarget{classpg_mesh_a8498f7dae7c73db64783ed66e9cb7654}{\index{pg\-Mesh@{pg\-Mesh}!m\-\_\-ap\-Indices@{m\-\_\-ap\-Indices}}
\index{m\-\_\-ap\-Indices@{m\-\_\-ap\-Indices}!pgMesh@{pg\-Mesh}}
\subsubsection[{m\-\_\-ap\-Indices}]{\setlength{\rightskip}{0pt plus 5cm}W\-O\-R\-D$\ast$ pg\-Mesh\-::m\-\_\-ap\-Indices\hspace{0.3cm}{\ttfamily [private]}}}\label{classpg_mesh_a8498f7dae7c73db64783ed66e9cb7654}
\hypertarget{classpg_mesh_aacd853ba3d7be2f122a9a9ddad0c4c80}{\index{pg\-Mesh@{pg\-Mesh}!m\-\_\-ap\-Verts@{m\-\_\-ap\-Verts}}
\index{m\-\_\-ap\-Verts@{m\-\_\-ap\-Verts}!pgMesh@{pg\-Mesh}}
\subsubsection[{m\-\_\-ap\-Verts}]{\setlength{\rightskip}{0pt plus 5cm}{\bf S\-Vertex}$\ast$ pg\-Mesh\-::m\-\_\-ap\-Verts\hspace{0.3cm}{\ttfamily [private]}}}\label{classpg_mesh_aacd853ba3d7be2f122a9a9ddad0c4c80}
\hypertarget{classpg_mesh_a52248bbf67aeeccfe8d1299eee84d79a}{\index{pg\-Mesh@{pg\-Mesh}!m\-\_\-index\-Count@{m\-\_\-index\-Count}}
\index{m\-\_\-index\-Count@{m\-\_\-index\-Count}!pgMesh@{pg\-Mesh}}
\subsubsection[{m\-\_\-index\-Count}]{\setlength{\rightskip}{0pt plus 5cm}int pg\-Mesh\-::m\-\_\-index\-Count\hspace{0.3cm}{\ttfamily [private]}}}\label{classpg_mesh_a52248bbf67aeeccfe8d1299eee84d79a}
\hypertarget{classpg_mesh_ac0c312baf5aa514c22a80110660990b2}{\index{pg\-Mesh@{pg\-Mesh}!m\-\_\-p\-Index\-Buffer@{m\-\_\-p\-Index\-Buffer}}
\index{m\-\_\-p\-Index\-Buffer@{m\-\_\-p\-Index\-Buffer}!pgMesh@{pg\-Mesh}}
\subsubsection[{m\-\_\-p\-Index\-Buffer}]{\setlength{\rightskip}{0pt plus 5cm}I\-D3\-D11\-Buffer$\ast$ pg\-Mesh\-::m\-\_\-p\-Index\-Buffer\hspace{0.3cm}{\ttfamily [private]}}}\label{classpg_mesh_ac0c312baf5aa514c22a80110660990b2}
\hypertarget{classpg_mesh_af398aa6765d1317a584bfc98b38007e8}{\index{pg\-Mesh@{pg\-Mesh}!m\-\_\-p\-Vertex\-Buffer@{m\-\_\-p\-Vertex\-Buffer}}
\index{m\-\_\-p\-Vertex\-Buffer@{m\-\_\-p\-Vertex\-Buffer}!pgMesh@{pg\-Mesh}}
\subsubsection[{m\-\_\-p\-Vertex\-Buffer}]{\setlength{\rightskip}{0pt plus 5cm}I\-D3\-D11\-Buffer$\ast$ pg\-Mesh\-::m\-\_\-p\-Vertex\-Buffer\hspace{0.3cm}{\ttfamily [private]}}}\label{classpg_mesh_af398aa6765d1317a584bfc98b38007e8}
\hypertarget{classpg_mesh_a4142f99f231a4c4da698b4e2d7ce0e4e}{\index{pg\-Mesh@{pg\-Mesh}!m\-\_\-vertex\-Count@{m\-\_\-vertex\-Count}}
\index{m\-\_\-vertex\-Count@{m\-\_\-vertex\-Count}!pgMesh@{pg\-Mesh}}
\subsubsection[{m\-\_\-vertex\-Count}]{\setlength{\rightskip}{0pt plus 5cm}int pg\-Mesh\-::m\-\_\-vertex\-Count\hspace{0.3cm}{\ttfamily [private]}}}\label{classpg_mesh_a4142f99f231a4c4da698b4e2d7ce0e4e}


The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Inc/\hyperlink{pg_mesh_8h}{pg\-Mesh.\-h}\item 
Source/\hyperlink{pg_mesh_8cpp}{pg\-Mesh.\-cpp}\end{DoxyCompactItemize}
